<!DOCTYPE html>
<html>
  <body>
    <span style="display:table">
      Cell 1
      <script type="text/javascript">document.body.offsetWidth</script>
      Cell 2
    </span>
  </body>
</html>
